#!/usr/bin/env node


const usr=process.argv[2],
      pwd=process.argv[3];
if(process.argv.length!==4){
  console.error('命令行参数应该是 cmd user_name password')
    process.exit(1)
}


const use_pwd=`${usr}:${pwd}`;
console.log(use_pwd);
const buf =Buffer.from(use_pwd);
console.log(buf.toString('base64'));
